const express = require('express');
const app = express();
app.route('/add')
    .get((req, res) => {
        res.send('get request')
    })
    .post((req, res) => {
        res.send('post request')
    });